package cn.crism.blog.service;

import cn.crism.blog.entity.Article;
import cn.crism.blog.param.QueryParam;
import org.springframework.data.domain.Page;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface ArticleService {
    String publishArticle(Article article);

    Page<Article> getAllArticles(QueryParam queryParam);

    Page<Article> getArticles(QueryParam queryParam);

    Boolean removeArticle(Integer articleId);

    String getAticleTitle(Integer articleId);

    Map<String,Object> findArticleGroupByTime(QueryParam queryParam);

    Article getArticleByArticleId(Integer articleId);

//    List<Article> findArticleByMonth(Date month);
}
